home *** CD-ROM | disk | FTP | other *** search
- Path: wairc.govt.nz!evanw
- From: evanw@wairc.govt.nz (Evan Wilson)
- Newsgroups: comp.lang.c++
- Subject: Logged in Username on Win 3.1
- Message-ID: <1996Jan24.155447.204@wairc.govt.nz>
- Date: 24 Jan 96 15:54:47 +1200
- Reply-To: EVANW@WAIRC.GOVT.NZ
- Organization: Waikato Regional Council
-
- I need a routine to return the logged in username in Windows 3.1. I have been
- experimenting with using the NetWkstaGetInfo routine in NETAPI.DLL. I am
- getting General Protection Faults whenever my code enters this routine however.
-
- I am using Microsoft Visual C++ v1.5. This version doesn't come with any
- header files for the Lan Manager routines, and the LM*.H routines with v2.0
- don't compile against v1.5.
-
- Can anyone help with the function definitions for NetWkstaGetInfo routine.
- Any help will be much appreciated.
-
- Evan Wilson
- _________________________________________________________________
- Evan Wilson PO Box 4010 Ph ++64-7-856-7184
- Environment Waikato 3 Cook St Fax ++64-7-856-8089
- Hamilton
- evanw@wairc.govt.nz New Zealand
-